#include <iostream>
#include "HttpServer.hpp"

static void Usage(const std::string &proc){
    std::cout << "/r/nUsage: " << proc << "serverport/r/n";
}

int main(int argc, char *argv[]){
    if (argc != 2){
        Usage(argv[0]);
        exit(0);
    }
    uint16_t port = std::stoi(argv[1]);
    HttpServer *httpsvr = new HttpServer(port);
    httpsvr->InitServer();
    httpsvr->StartServer();

    return 0;
}